import { Modal, type ModalProps } from "antd"
import React, { useState, type PropsWithChildren } from "react"

import { getStyleContainerRoot } from "~util"

export default function OIModal(params: PropsWithChildren<ModalProps>) {
  return (
    <Modal {...params} getContainer={getStyleContainerRoot()}>
      {params.children}
    </Modal>
  )
}
